package cn.kgc.tcst004.maoqichao.crowdfundingadminspringboot.service;

import cn.kgc.tcst004.maoqichao.crowdfundingadminspringboot.mapper.MessageMapper;
import cn.kgc.tcst004.maoqichao.crowdfundingadminspringboot.pojo.Message;
import cn.kgc.tcst004.maoqichao.crowdfundingadminspringboot.pojo.MessageExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MessageServiceImpI implements MessageService{
    @Resource
    MessageMapper messageMapper;

    @Override
    public List<Message> selectAllMessage() {
        return messageMapper.selectByExample(null);
    }


    @Override
    public void updateMessage(Message message) {
        messageMapper.updateByPrimaryKey(message);
    }
}
